home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / MATH / NRPAS13 / ERF.PAS < prev    next >
Pascal/Delphi Source File  |  1991-04-29  |  163b  |  9 lines

  1. FUNCTION erf(x: real): real;
  2. BEGIN
  3.    IF (x < 0.0) THEN BEGIN
  4.       erf := -gammp(0.5,sqr(x))
  5.    END ELSE BEGIN
  6.       erf := gammp(0.5,sqr(x))
  7.    END
  8. END;
  9.